//package com.shenfc.fxzj.util;
//
//
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.amqp.core.AmqpTemplate;
//
//import javax.annotation.Resource;
//
///**
// * 功能概要：消息产生,提交到队列中去
// */
//public class RabbitMqUtil {
//
//    private static final Logger logger = LoggerFactory.getLogger(RabbitMqUtil.class);
//
//    @Resource
//    private AmqpTemplate amqpTemplate;
//
//    public void sendDirectExchangeMessage(String exchange,String routingKey ,Object message){
//        logger.info("发送的消息："+message);
//        amqpTemplate.convertAndSend(exchange,routingKey,message);
//    }
//}